/** ###################################################################
**     Filename  : Config.C
**     Project   : Motologger_v2
**     Processor : MC9S12XA256CFU
**     Compiler  : CodeWarrior HCS12X C Compiler
**     Date/Time : 12/8/2009, 5:54 PM
**     Contents  :
**         User source code
**
**     (c) Copyright UNIS, a.s. 1997-2008
**     UNIS, a.s.
**     Jundrovska 33
**     624 00 Brno
**     Czech Republic
**     http      : www.processorexpert.com
**     mail      : info@processorexpert.com
** ###################################################################*/

/* MODULE Config */

#include "Config.h"

configFileType Config;

void Config_Init(void){
	Config.settings[tachPrimarySetting]=speed;
	Config.settings[tachSecondarySetting]=rpm;
	Config.settings[ledMode]=gearShift;
	Config.settings[userbuttonMode]=toggleTachModes;
	Config.settings[gearShiftRPM]=6000;      //default shift light threshold
	Config.settings[rpmSampling]=15;
	Config.settings[accelometerSampling]=15;
	Config.settings[gpsSampling]=1;					 //not configurable, exists so it shows up in config file header
	Config.settings[vBattSampling]=1;
	Config.settings[gearSampling]=5;
	Config.settings[tireWidth]=58;
	Config.settings[tireAspectRatio]=120;
	Config.settings[tireRimDiameter]=70;
	Config.settings[speedTicksPerRevolution]=4;
	Config.settings[lastFileWritten]=0;//only applies to foneara, we don't use this
	Config.settings[shutdownOk]=1;           //power off unless told otherwise
	Config.settings[foneraStartNewFile]=0;	 //not really a config, exists to be a command type
	Config.settings[outputSamplesEnabled]=0; //global disalbe talking to fonera
	Config.settings[speedSampling]=15;

	
}

const char*  setting_names[num_settings];


/* END Config */
